xen/arm: vGICv3: Restore the interrupt state correctly
authorAyan Kumar Halder <ayankuma@amd.com>
Thu, 27 Oct 2022 19:09:13 +0000 (20:09 +0100)
committerJulien Grall <julien@xen.org>
Tue, 15 Nov 2022 23:01:44 +0000 (23:01 +0000)
commitaa717d803eb5442c0ab9c6f078b6ff2078092bae
tree27a4794acc14510a44961f4f58825bc87e374143
parentc805ceb0b26a643c7e47f01f2dbc50555d93cce8
xen/arm: vGICv3: Restore the interrupt state correctly

As "spin_lock_irqsave(&v->arch.vgic.lock, flags)" saves the current interrupt
state in "flags", "spin_unlock_irqrestore(&v->arch.vgic.lock, flags)" should be
used to restore the saved interrupt state.

Fixes: fe7fa1332dabd9ce4 ("ARM: vGICv3: handle virtual LPI pending and property tables")
Signed-off-by: Ayan Kumar Halder <ayankuma@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/arch/arm/vgic-v3.c